package com.core.sdk.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class VerifyUtil {
	public static boolean verifyPhone(String phone){
		Matcher matcher = Pattern.compile("1[0-9]{10}").matcher(phone);
		return matcher.matches();
	}
	public static boolean verifyEmail(String email){
		return email.indexOf("@") != -1 && email.indexOf(".") != -1;
	}
}
